#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QGraphicsScene>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private slots:
    void on_keyPress(QKeyEvent *event);
    void on_mouseMovePoint(QPoint point);
    void on_mousePress(QPoint point);
    void on_mouseDoubleClicked(QPoint point);
    void on_actionRect_triggered();

    void on_actionCircle_triggered();

    void on_actionEllip_triggered();

    void on_actionLine_triggered();

    void on_actionPolygon_triggered();

    void on_actionTriangle_triggered();

    void on_actionText_triggered();

    void on_actionZoomIn_triggered();

    void on_actionZoomOut_triggered();

    void on_actionRestore_triggered();

    void on_actionRotateLeft_triggered();

    void on_actionRotateRight_triggered();

    void on_actionEdit_Front_triggered();

    void on_actionEdit_back_triggered();

    void on_actionGroup_triggered();

    void on_actionGroupBreakk_triggered();

    void on_actionDelete_triggered();

private:
    void initUI();
private:
    Ui::MainWindow *ui;
    QLabel *labelViewCord;
    QLabel *labelSceneCord;
    QLabel *labelItemCord;
    QLabel *labelItemInfo;
    QGraphicsScene *scene;
    static const int ItemId = 1;
    static const int ItemDescription = 2;
    int seqNum = 0;
};
#endif // MAINWINDOW_H
